﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.ServiceLocation;

namespace MenuBarModule
{
    [Module(ModuleName = "MenuBarModule", OnDemand = true)]
    public class MenuBarModule : IModule
    {
        public void Initialize()
        {
            var regionManager = ServiceLocator.Current.GetInstance<IRegionManager>();
            regionManager.RegisterViewWithRegion("MenuBarRegion", typeof(MenuBar));
        }
    }
}
